#pragma once

#include "common\wsTypes.h"
using namespace whitesnake;

#define HTTPBUFLEN			512		// Size of HTTP Buffer...

class wsUpdateManager;

class wsHttpTransfer
{
private:
	UINT64 totalSize;
	UINT64 currentSize;

public:
	bool ReadText(const TCHAR* url, CString& readString);
	bool DownloadFile(const TCHAR* url, wsUpdateManager* updateManager = NULL);
	UINT64 DownloadedTotalSize();
	UINT64 DownloadedCurrentSize();

public:
	wsHttpTransfer();
	~wsHttpTransfer();
};

